package com.spl.chapter2.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EnglishController {
    @Value("${book.name}")
    private String name;
    @Value("${book.page}")
    private int page;

    @RequestMapping(value = "/book")
    public String book(){
        return name+":"+page;
    }
}
